package cn.da.shuai.cool.system.service.mapper;

import cn.da.shuai.cool.system.model.entity.user.CoolUser;
import cn.da.shuai.cool.system.model.entity.user.SearchUserVo;
import cn.da.shuai.cool.system.model.entity.user.UserListDto;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 系统用户表 Mapper 接口
 * </p>
 *
 * @author 大帅哥
 * @since 2025-01-03
 */
public interface CoolUserMapper extends BaseMapper<CoolUser> {

    List<String> selectMenuPerms(@Param("id") Integer id);

    List<Integer> selectUserIdsByRole(Integer userId);

    List<Integer> selectUserIdsByPosition(Integer userId);

    List<Integer> selectUserIdsByDept(Integer deptId);

    List<UserListDto> selectUserList(@Param("vo") SearchUserVo vo);

}
